package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DStocktakingMapper;
import com.ruoyi.system.domain.DStocktaking;
import com.ruoyi.system.service.IDStocktakingService;

/**
 * 库存盘点Service业务层处理
 * 
 * @author lsc
 * @date 2025-04-03
 */
@Service
public class DStocktakingServiceImpl implements IDStocktakingService 
{
    @Autowired
    private DStocktakingMapper dStocktakingMapper;

    /**
     * 查询库存盘点
     * 
     * @param id 库存盘点主键
     * @return 库存盘点
     */
    @Override
    public DStocktaking selectDStocktakingById(Long id)
    {
        return dStocktakingMapper.selectDStocktakingById(id);
    }

    /**
     * 查询库存盘点列表
     * 
     * @param dStocktaking 库存盘点
     * @return 库存盘点
     */
    @Override
    public List<DStocktaking> selectDStocktakingList(DStocktaking dStocktaking)
    {
        return dStocktakingMapper.selectDStocktakingList(dStocktaking);
    }

    /**
     * 新增库存盘点
     * 
     * @param dStocktaking 库存盘点
     * @return 结果
     */
    @Override
    public int insertDStocktaking(DStocktaking dStocktaking)
    {
        return dStocktakingMapper.insertDStocktaking(dStocktaking);
    }

    /**
     * 修改库存盘点
     * 
     * @param dStocktaking 库存盘点
     * @return 结果
     */
    @Override
    public int updateDStocktaking(DStocktaking dStocktaking)
    {
        return dStocktakingMapper.updateDStocktaking(dStocktaking);
    }

    /**
     * 批量删除库存盘点
     * 
     * @param ids 需要删除的库存盘点主键
     * @return 结果
     */
    @Override
    public int deleteDStocktakingByIds(Long[] ids)
    {
        return dStocktakingMapper.deleteDStocktakingByIds(ids);
    }

    /**
     * 删除库存盘点信息
     * 
     * @param id 库存盘点主键
     * @return 结果
     */
    @Override
    public int deleteDStocktakingById(Long id)
    {
        return dStocktakingMapper.deleteDStocktakingById(id);
    }
}
